package dao

import (
	"chat/initlist/mysql"
	"github.com/gin-gonic/gin"
)

func GetUserBy(r *gin.Context, username string) error {
	return mysql.DB.Debug().Where("username = ?", username).Limit(1).Find(&r).Error
}
